package models;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "t_BillInfo", schema = "dbo", catalog = "MobileCenter_Test")
public class BillInfo_T_Entity {
    private int fdRowId;
    private String companyCode;
    private String orgCode;
    private String requestid;
    private String weiId;
    private String weiName;
    private String proName;
    private String contNo;
    private String contSubNo;
    private String ladingno;
    private String assno;
    private String poutype;
    private String itemCode;
    private String itemName;
    private String vehnum;
    private String shipname;
    private String note;
    private Timestamp cDate;
    private String creBy;
    private Timestamp uDate;
    private String udBy;
    private String frACode;
    private String frAName;
    private String deACode;
    private String deAName;
    private String status;
    private String amount;
    private String unit;
    private String dest;
    private Timestamp sDate;
    private Timestamp eDate;
    private String conuser;
    private String sttype;
    private String itemId;
    private String customerId;
    private String customerCode;
    private String loadingSubNum;

    @Id
    @Column(name = "fd_RowId", nullable = false)
    public int getFdRowId() {
        return fdRowId;
    }

    public void setFdRowId(int fdRowId) {
        this.fdRowId = fdRowId;
    }

    @Basic
    @Column(name = "CompanyCode", nullable = true, length = 4)
    public String getCompanyCode() {
        return companyCode;
    }

    public void setCompanyCode(String companyCode) {
        this.companyCode = companyCode;
    }

    @Basic
    @Column(name = "OrgCode", nullable = true, length = 8)
    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    @Basic
    @Column(name = "Requestid", nullable = true, length = 30)
    public String getRequestid() {
        return requestid;
    }

    public void setRequestid(String requestid) {
        this.requestid = requestid;
    }

    @Basic
    @Column(name = "WeiId", nullable = true, length = 10)
    public String getWeiId() {
        return weiId;
    }

    public void setWeiId(String weiId) {
        this.weiId = weiId;
    }

    @Basic
    @Column(name = "WeiName", nullable = true, length = 30)
    public String getWeiName() {
        return weiName;
    }

    public void setWeiName(String weiName) {
        this.weiName = weiName;
    }

    @Basic
    @Column(name = "ProName", nullable = true, length = 100)
    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    @Basic
    @Column(name = "ContNo", nullable = true, length = 50)
    public String getContNo() {
        return contNo;
    }

    public void setContNo(String contNo) {
        this.contNo = contNo;
    }

    @Basic
    @Column(name = "ContSubNo", nullable = true, length = 50)
    public String getContSubNo() {
        return contSubNo;
    }

    public void setContSubNo(String contSubNo) {
        this.contSubNo = contSubNo;
    }

    @Basic
    @Column(name = "LADINGNO", nullable = true, length = 30)
    public String getLadingno() {
        return ladingno;
    }

    public void setLadingno(String ladingno) {
        this.ladingno = ladingno;
    }

    @Basic
    @Column(name = "ASSNO", nullable = true, length = 30)
    public String getAssno() {
        return assno;
    }

    public void setAssno(String assno) {
        this.assno = assno;
    }

    @Basic
    @Column(name = "POUTYPE", nullable = true, length = 20)
    public String getPoutype() {
        return poutype;
    }

    public void setPoutype(String poutype) {
        this.poutype = poutype;
    }

    @Basic
    @Column(name = "ItemCode", nullable = true, length = 50)
    public String getItemCode() {
        return itemCode;
    }

    public void setItemCode(String itemCode) {
        this.itemCode = itemCode;
    }

    @Basic
    @Column(name = "ItemName", nullable = true, length = 50)
    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    @Basic
    @Column(name = "VEHNUM", nullable = true, length = 20)
    public String getVehnum() {
        return vehnum;
    }

    public void setVehnum(String vehnum) {
        this.vehnum = vehnum;
    }

    @Basic
    @Column(name = "SHIPNAME", nullable = true, length = 20)
    public String getShipname() {
        return shipname;
    }

    public void setShipname(String shipname) {
        this.shipname = shipname;
    }

    @Basic
    @Column(name = "Note", nullable = true, length = 200)
    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    @Basic
    @Column(name = "CDate", nullable = true)
    public Timestamp getcDate() {
        return cDate;
    }

    public void setcDate(Timestamp cDate) {
        this.cDate = cDate;
    }

    @Basic
    @Column(name = "CreBy", nullable = true, length = 10)
    public String getCreBy() {
        return creBy;
    }

    public void setCreBy(String creBy) {
        this.creBy = creBy;
    }

    @Basic
    @Column(name = "UDate", nullable = true)
    public Timestamp getuDate() {
        return uDate;
    }

    public void setuDate(Timestamp uDate) {
        this.uDate = uDate;
    }

    @Basic
    @Column(name = "UdBy", nullable = true, length = 10)
    public String getUdBy() {
        return udBy;
    }

    public void setUdBy(String udBy) {
        this.udBy = udBy;
    }

    @Basic
    @Column(name = "FrACode", nullable = true, length = 32)
    public String getFrACode() {
        return frACode;
    }

    public void setFrACode(String frACode) {
        this.frACode = frACode;
    }

    @Basic
    @Column(name = "FrAName", nullable = true, length = 200)
    public String getFrAName() {
        return frAName;
    }

    public void setFrAName(String frAName) {
        this.frAName = frAName;
    }

    @Basic
    @Column(name = "DeACode", nullable = true, length = 32)
    public String getDeACode() {
        return deACode;
    }

    public void setDeACode(String deACode) {
        this.deACode = deACode;
    }

    @Basic
    @Column(name = "DeAName", nullable = true, length = 200)
    public String getDeAName() {
        return deAName;
    }

    public void setDeAName(String deAName) {
        this.deAName = deAName;
    }

    @Basic
    @Column(name = "STATUS", nullable = true, length = 2)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "Amount", nullable = true, length = 20)
    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    @Basic
    @Column(name = "Unit", nullable = true, length = 3)
    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    @Basic
    @Column(name = "DEST", nullable = true, length = 100)
    public String getDest() {
        return dest;
    }

    public void setDest(String dest) {
        this.dest = dest;
    }

    @Basic
    @Column(name = "SDate", nullable = true)
    public Timestamp getsDate() {
        return sDate;
    }

    public void setsDate(Timestamp sDate) {
        this.sDate = sDate;
    }

    @Basic
    @Column(name = "EDate", nullable = true)
    public Timestamp geteDate() {
        return eDate;
    }

    public void seteDate(Timestamp eDate) {
        this.eDate = eDate;
    }

    @Basic
    @Column(name = "CONUSER", nullable = true, length = 20)
    public String getConuser() {
        return conuser;
    }

    public void setConuser(String conuser) {
        this.conuser = conuser;
    }

    @Basic
    @Column(name = "STTYPE", nullable = true, length = 20)
    public String getSttype() {
        return sttype;
    }

    public void setSttype(String sttype) {
        this.sttype = sttype;
    }

    @Basic
    @Column(name = "ItemId", nullable = true, length = 10)
    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    @Basic
    @Column(name = "CustomerId", nullable = true, length = 10)
    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    @Basic
    @Column(name = "CustomerCODE", nullable = true, length = 20)
    public String getCustomerCode() {
        return customerCode;
    }

    public void setCustomerCode(String customerCode) {
        this.customerCode = customerCode;
    }

    @Basic
    @Column(name = "LoadingSubNum", nullable = true, length = 30)
    public String getLoadingSubNum() {
        return loadingSubNum;
    }

    public void setLoadingSubNum(String loadingSubNum) {
        this.loadingSubNum = loadingSubNum;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        BillInfo_T_Entity that = (BillInfo_T_Entity) o;
        return fdRowId == that.fdRowId &&
                Objects.equals(companyCode, that.companyCode) &&
                Objects.equals(orgCode, that.orgCode) &&
                Objects.equals(requestid, that.requestid) &&
                Objects.equals(weiId, that.weiId) &&
                Objects.equals(weiName, that.weiName) &&
                Objects.equals(proName, that.proName) &&
                Objects.equals(contNo, that.contNo) &&
                Objects.equals(contSubNo, that.contSubNo) &&
                Objects.equals(ladingno, that.ladingno) &&
                Objects.equals(assno, that.assno) &&
                Objects.equals(poutype, that.poutype) &&
                Objects.equals(itemCode, that.itemCode) &&
                Objects.equals(itemName, that.itemName) &&
                Objects.equals(vehnum, that.vehnum) &&
                Objects.equals(shipname, that.shipname) &&
                Objects.equals(note, that.note) &&
                Objects.equals(cDate, that.cDate) &&
                Objects.equals(creBy, that.creBy) &&
                Objects.equals(uDate, that.uDate) &&
                Objects.equals(udBy, that.udBy) &&
                Objects.equals(frACode, that.frACode) &&
                Objects.equals(frAName, that.frAName) &&
                Objects.equals(deACode, that.deACode) &&
                Objects.equals(deAName, that.deAName) &&
                Objects.equals(status, that.status) &&
                Objects.equals(amount, that.amount) &&
                Objects.equals(unit, that.unit) &&
                Objects.equals(dest, that.dest) &&
                Objects.equals(sDate, that.sDate) &&
                Objects.equals(eDate, that.eDate) &&
                Objects.equals(conuser, that.conuser) &&
                Objects.equals(sttype, that.sttype) &&
                Objects.equals(itemId, that.itemId) &&
                Objects.equals(customerId, that.customerId) &&
                Objects.equals(customerCode, that.customerCode) &&
                Objects.equals(loadingSubNum, that.loadingSubNum);
    }

    @Override
    public int hashCode() {

        return Objects.hash(fdRowId, companyCode, orgCode, requestid, weiId, weiName, proName, contNo, contSubNo, ladingno, assno, poutype, itemCode, itemName, vehnum, shipname, note, cDate, creBy, uDate, udBy, frACode, frAName, deACode, deAName, status, amount, unit, dest, sDate, eDate, conuser, sttype, itemId, customerId, customerCode, loadingSubNum);
    }
}
